package com.jike.shop.cloud.model.goods;

import com.alibaba.fastjson.JSONArray;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.ser.Serializers;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;


@Data
@EqualsAndHashCode(callSuper = false)
@TableName("goods_sku")
@ApiModel(value="goods_sku对象", description="商品sku")
public class GoodsSku extends Serializers.Base {
    @ApiModelProperty(value = "商品id")
    private Long goodsId;

    @ApiModelProperty(value = "sku名称")
    private String name;

    @ApiModelProperty(value = "库存数")
    private Integer stockNum;

    @ApiModelProperty(value = "库存告警数")
    private Integer stockWarnNum;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "市场价格")
    private BigDecimal marketPrice;

    @ApiModelProperty(value = "成本价格")
    private BigDecimal costPrice;

    @ApiModelProperty(value = "最低价")
    private BigDecimal minPrice;

    @ApiModelProperty(value = "最高价")
    private BigDecimal maxPrice;

    @ApiModelProperty(value = "商品编码")
    private String goodsCode;

    @ApiModelProperty(value = "商品属性id列表")
    private JSONArray propertyIds;

    @ApiModelProperty(value = "状态")
    private Boolean status;
}
